import { reactive, ref } from "vue";

export default function InitHook() {
  const tableRef = ref<any>(null);
  const keyWord = ref<string>("");
  const searchForm = reactive<Partial<CustomerManagement.SearchForm>>({
    companyName: undefined,
    shortName: undefined,
    bizId: undefined,
    followId: undefined,
    pageNum: 1,
    pageSize: 100,
    total: 0
  });
  const tableData = ref<Array<CustomerManagement.ListRows>>([]);
  const checkResult = ref<Array<Base.GeneraDataType>>([]);
  const visible = ref<boolean>(false);
  return {
    searchForm,
    tableData,
    tableRef,
    keyWord,
    checkResult,
    visible
  };
}
